/**
 * Company : Siangklom.
 * Created By : Chatree Siangklom
 * Created On : Aug 22, 2013  3:39:18 PM 
 * e-Mail : dr_chatree@hotmail.com
 * Mobile Phone : (+66) 087-921-5115
 * Package Name : com.tis.database.entitys
 * File Name : CommonEntity.java
 * TODO
 */
package com.tis.database.entitys;

import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;

import promis.utility.CommonService;

/**
 * @author Administrator
 *
 */
public class CommonEntity {	 	
	
	private Date syncCreatedon;
	private Date syncUpdatedon;

	/**
	 * @param syncCreatedon the syncCreatedon to set
	 * Date =Sep 10, 2013 : 1:36:50 PM 
	 * CreateBy=Chatree Siangklom
	 * TODO
	 */
	public void setSyncCreatedon(Date syncCreatedon) {
		this.syncCreatedon = syncCreatedon;
	}
	
	/**
	 * 
	 * Date =Sep 10, 2013 : 1:44:33 PM 
	 * CreateBy=Chatree Siangklom
	 * TODO
	 * @return
	 */
	public String getSyncCreatedonToString() {
		if(this.syncCreatedon != null)
			return CommonService.ConvertDateTimeToStringDisplay(this.syncCreatedon);
		else 
			return "";
	}

	/**
	 * @return the syncUpdatedon
	 * Date =Sep 10, 2013 : 2:01:38 PM 
	 * CreateBy=Chatree Siangklom
	 * TODO
	 */
	public Date getSyncUpdatedon() {
		return syncUpdatedon;
	}

	/**
	 * @param syncUpdatedon the syncUpdatedon to set
	 * Date =Sep 10, 2013 : 2:01:38 PM 
	 * CreateBy=Chatree Siangklom
	 * TODO
	 */
	public void setSyncUpdatedon(Date syncUpdatedon) {
		this.syncUpdatedon = syncUpdatedon;
	}
	
	public String getSyncUpdatedonToString() {
		if(this.syncUpdatedon != null)
			return CommonService.ConvertDateTimeToStringDisplay(this.syncUpdatedon);
		else 
			return "";
	}
	
	
}
